package com.soulgame.sms.util;

import android.content.Context;

public class ResourcesUtil {
	
	public static int getResource(Context context, String name, String type) {
		try {
			String packageName = context.getPackageName();
			return context.getResources().getIdentifier(name, type, packageName);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return 0;
	}
}
